<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../plugins/jquery/dist/jquery.js"></script>
    <script src="../plugins/qrcode.min.js"></script>
</head>
<body>
<div id="qrCode"></div>


<script>
    // 参数一 div的id ， 参数二 将xxxx生成二维码
    // let qrCode = new QRCode('qrCode','https://www.baidu.com');
    let qrCode = new QRCode('qrCode',{
        text:'http://www.itcast.cn',
        width:200,
        height:200,
        // colorLight: '#e21918',
        // colorDark: '#0078d7',
        correctLevel: QRCode.CorrectLevel.M
    });
</script>
</body>
</html>
